package com.fl.test.mapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import com.fl.Application;
import com.fl.mapper.TStudyMapper;
import com.fl.model.TStudy;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Application.class)
@WebAppConfiguration
public class StudyUpdate {
	
	@Autowired TStudyMapper TStudyMapper;
	@Test
	public void test()
	{
		TStudy model=new TStudy();
		model.setFid("001");
		model.setFdate("");
		model.setFstate(1);
		TStudyMapper.insert(model);
	}
	
}
